#include <stdio.h>

union Test{
	char a;
	int b;
};

int main(int argc, const char *argv[])
{
	union Test t;
	t.b = 0x12345678;
	if(0x78 == t.a){
		printf("小端\n");
	}else if(0x12 == t.a){
		printf("大端\n");
	}
	return 0;
}
